package com.howie.gulimall.search.feign;

import com.howie.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @description: 远程调用API接口
 * @author: laizhenghua
 * @date: 2021/2/27 16:23
 */
@FeignClient("gulimall-product")
public interface FeignProductService {
    /**
     * 根据属性id获取属性及关联的信息
     * 请求路径：/product/attr/info/{attrId}
     */
    @RequestMapping("/product/attr/info/{attrId}")
    public R attrInfo(@PathVariable("attrId") Long attrId);
}
